module.exports = {
	
	
	tips: { //tips组件
		showTips: function(store, conf) { //显示Tips			
			conf.show = true;
			store.dispatch("SET_TIPS_CONFIG", conf);
			var closeTimeout = typeof conf.closeTimeout == "undefined" ? 1500 : conf.closeTimeout;
			if(closeTimeout != 0){
				store.dispatch("AUTO_CLOSE", closeTimeout);
			}
		},
		closeTips: function(store) { //关闭Tips
			store.dispatch("CLOSE_TIPS");
		}
	},
	loading:{
		setLoading:function(store,data){	 
			store.dispatch("setLoading", data);
		}
	}
	
	
	
}